import Cookies from 'js-cookie';

const user = {
    state: {
        user: {}
    },
    mutations: {
        // 用户信息
        setUserInfo (state, user) {
            state.user = user;
            localStorage.userToken = user.token;
        }
    }
};

export default user;
